// WLog.h: interface for the CWLog class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_WLOG_H__DDACF83E_51CB_425B_9B10_43A66D0049E3__INCLUDED_)
#define AFX_WLOG_H__DDACF83E_51CB_425B_9B10_43A66D0049E3__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CWLog  
{
public:
	CWLog();
	virtual ~CWLog();

public:
	void Enable(BOOL bEnable);
	BOOL Write(const TCHAR* fmt, ...);

private:
	BOOL m_bEnable;
	HANDLE m_hFile;
	CRITICAL_SECTION  m_crit;
};

#endif // !defined(AFX_WLOG_H__DDACF83E_51CB_425B_9B10_43A66D0049E3__INCLUDED_)
